package com.zlx.ssm.service.impl;

import com.zlx.ssm.mapper.EmployeeInfoMapper;
import com.zlx.ssm.service.IDeleService;
import com.zlx.ssm.vo.DateInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeleServiceimpl implements IDeleService {

    @Autowired
    private EmployeeInfoMapper employeeInfoMapper;

    @Override
    public int delectById(String id) {

        int i = employeeInfoMapper.deleteByPrimaryKey(Integer.valueOf(id));

        return i;
    }

    @Override
    public int deleNotListId(List<DateInfo> dateInfoList) {

        int i = employeeInfoMapper.deleteByBirthdayNotList(dateInfoList);

        return i;
    }
}
